//
//  UIViewController+SWNavigationBarSetting.h
//  bouni
//
//  Created by Mac on 2018/7/4.
//  Copyright © 2018年 Lonan. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (SWNavigationBarSetting)
/**
 *  自定义左边按钮
 *
 *  @param icon     图标 非必填
 *  @param title    标题 非必填
 *  @param selector 事件
 */
- (void)setLeftItemWithIcon:(UIImage *)icon title:(NSString *)title selector:(SEL)selector;
- (UIBarButtonItem *)ittemLeftItemWithIcon:(UIImage *)icon title:(NSString *)title selector:(SEL)selector;
-(void)removcNavigationBarBottomLine;
#pragma mark 左边按钮定制
/**
 *  显示默认返回按钮
 *
 *  @param title 需要传入上级界面标题
 */
- (void)showBackWithTitle:(NSString *)title;
/**
 *  通过ico定制右侧按钮
 *
 *  @param icon     图标
 *  @param selector 事件
 */
- (void)setRightItemWithIcon:(UIImage *)icon title:(NSString *)title selector:(SEL)selector;
- (UIBarButtonItem *)ittemRightItemWithIcon:(UIImage *)icon title:(NSString *)title selector:(SEL)selector;
@end
